app.controller('bpmHistoryProcessViewController', ['$scope', 'httpWrapService', '$window', '$state', '$stateParams','GridFactory','$sce','$uibPosition',
        function($scope, httpWrapService, $window, $state, $stateParams,GridFactory,$sce,$uibPosition) {




    httpWrapService.defaultPost('bpm/history/process/finished/view/' + $stateParams.processInstanceId + '.do' ).then(function(res){
        $scope.historicProcessInstance = res.data.entity;
        $scope.processDefinition = res.data.map.processDefinition;
        $scope.activities = res.data.map.activities;
        $scope.formProperties = res.data.map.formProperties;
        $scope.variableInstances = res.data.map.variableInstances;
    });

}]);
